from django.conf.urls.defaults import *
from vidastream.stream.models import Feed

urlpatterns = patterns('vidastream.stream.views',
	(r'^bugreport/$', 'bugreport'),
	(r'^search/$', 'search'),
	(r'^friend/(add|remove)/$', 'friend_control'),
	(r'^u/(?P<username>[a-zA-Z0-9]+)/$', 'user_stream'),
	(r'^u/(?P<username>[a-zA-Z0-9]+)/profile/$', 'user_stream'),
	(r'^u/(?P<username>[a-zA-Z0-9]+)/friends/$', 'user_stream'),
	(r'^u/(?P<username>[a-zA-Z0-9]+)/feed/$', 'user_stream'),
	(r'^settings/$', 'user_settings'),
	(r'^settings/profile/$', 'user_settings_profile'),
	(r'^settings/feeds/$', 'user_settings_feeds'),
	(r'^settings/feeds/add/$', 'user_settings_feeds_add'),
	(r'^settings/feeds/(?P<feed_id>\d+)/$', 'user_settings_feeds_edit'),
	(r'^settings/feeds/(?P<feed_id>\d+)/delete/$', 'user_settings_feeds_delete'),
	(r'^settings/friends/$', 'user_settings_friends'),
	(r'^settings/friends/add/$', 'user_settings_friends_add'),
	(r'^settings/friends/(?P<friend_id>\d+)/remove/$', 'user_settings_friends_remove'),
)

urlpatterns += patterns('django.views.generic.simple',
	(r'^$', 'direct_to_template', {'template': 'stream/welcome.html'}),
	(r'^help/$', 'direct_to_template', {'template': 'stream/help.html'}),
	(r'^faq/$', 'direct_to_template', {'template': 'stream/faq.html'}),
	(r'^tos/$', 'direct_to_template', {'template': 'stream/legal/tos.html'}),
	(r'^privacy/$', 'direct_to_template', {'template': 'stream/legal/privacy.html'}),
	(r'^about/$', 'direct_to_template', {'template': 'stream/about.html'}),
	(r'^contact/$', 'direct_to_template', {'template': 'stream/contact.html'}),
	)
